package com.wzapp.sitposture.usercenter.service;

import com.alibaba.fastjson.JSONObject;
import com.wzapp.sitposture.common.page.CommonPage;
import com.wzapp.sitposture.common.page.PageParam;
import com.wzapp.sitposture.usercenter.entity.UserSettingPosture;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * 功能: 姿态信息接口<br/>
 *
 * @author qianglong
 * @version 1.1
 * @create 2019-01-27 16:34
 **/
public interface UserSettingPostureService {

    /**
     * 功能: 保存姿态信息<br/>
     *
     * @author qianglong
     * @create 2019/1/27 16:35
     * @param userSettingPosture
     * @return com.wzapp.sitposture.usercenter.entity.UserSettingPosture
     **/
    UserSettingPosture save(UserSettingPosture userSettingPosture);

    /**
     * 功能: 批量保存姿态信息<br/>
     *
     * @author qianglong
     * @create 2019/1/27 21:54
     * @param userSettingPostures
     * @return void
     **/
    void batchSave(List<UserSettingPosture> userSettingPostures);

    /**
     * 功能: 家长获取近半个小时学习姿态<br/>
     *
     * @author qianglong
     * @create 2019/1/27 16:52
     * @param userId
     * @param startTime
     * @param pageParam
     * @return com.wzapp.sitposture.common.page.CommonPage
     **/
    CommonPage<UserSettingPosture> findByStartTime(String userId,Long startTime,PageParam pageParam);

    /**
     * 功能: 获取某天学习统计数据<br/>
     *
     * @author qianglong
     * @create 2019/1/27 17:12
     * @param userId
     * @param statisticDate
     * @return java.util.List<java.util.Map>
     **/
    Map findByStatisticDate(String userId,Long statisticDate);
}
